import request from '../utils/request'

export function login(username, password) {
  let data = {
    username, password
  }
  return request({
    url: '/user/login',
    method: 'post',
    data: data
  })
}

export function logout() {
  return request({
    url: '/user/logout',
    method: 'post',
    data: {}
  })
}

export function getInfo(data) {
  return request({
    url: '/user/getUserInfoById',
    method: 'get',
    params: data
  })
}
